---
title: istio.mixer.adapter.sample.check
layout: protoc-gen-docs
generator: protoc-gen-docs
number_of_entries: 6
---
<h2 id="Res1">Res1</h2>
<section>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Res1.value">
<td><code>value</code></td>
<td><code><a href="#istio.policy.v1beta1.Value">istio.policy.v1beta1.Value</a></code></td>
<td>
</td>
</tr>
<tr id="Res1.dimensions">
<td><code>dimensions</code></td>
<td><code>map&lt;string,&nbsp;<a href="#istio.policy.v1beta1.Value">istio.policy.v1beta1.Value</a>&gt;</code></td>
<td>
</td>
</tr>
<tr id="Res1.int64Primitive">
<td><code>int64Primitive</code></td>
<td><code>int64</code></td>
<td>
</td>
</tr>
<tr id="Res1.boolPrimitive">
<td><code>boolPrimitive</code></td>
<td><code>bool</code></td>
<td>
</td>
</tr>
<tr id="Res1.doublePrimitive">
<td><code>doublePrimitive</code></td>
<td><code>double</code></td>
<td>
</td>
</tr>
<tr id="Res1.stringPrimitive">
<td><code>stringPrimitive</code></td>
<td><code>string</code></td>
<td>
</td>
</tr>
<tr id="Res1.int64Map">
<td><code>int64Map</code></td>
<td><code>map&lt;string,&nbsp;int64&gt;</code></td>
<td>
</td>
</tr>
<tr id="Res1.timeStamp">
<td><code>timeStamp</code></td>
<td><code><a href="#istio.policy.v1beta1.TimeStamp">istio.policy.v1beta1.TimeStamp</a></code></td>
<td>
</td>
</tr>
<tr id="Res1.duration">
<td><code>duration</code></td>
<td><code><a href="#istio.policy.v1beta1.Duration">istio.policy.v1beta1.Duration</a></code></td>
<td>
</td>
</tr>
<tr id="Res1.res2">
<td><code>res2</code></td>
<td><code><a href="#Res2">Res2</a></code></td>
<td>
</td>
</tr>
<tr id="Res1.res2_map">
<td><code>res2Map</code></td>
<td><code>map&lt;string,&nbsp;<a href="#Res2">Res2</a>&gt;</code></td>
<td>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Res2">Res2</h2>
<section>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Res2.value">
<td><code>value</code></td>
<td><code><a href="#istio.policy.v1beta1.Value">istio.policy.v1beta1.Value</a></code></td>
<td>
</td>
</tr>
<tr id="Res2.dimensions">
<td><code>dimensions</code></td>
<td><code>map&lt;string,&nbsp;<a href="#istio.policy.v1beta1.Value">istio.policy.v1beta1.Value</a>&gt;</code></td>
<td>
</td>
</tr>
<tr id="Res2.int64Primitive">
<td><code>int64Primitive</code></td>
<td><code>int64</code></td>
<td>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Template">Template</h2>
<section>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Template.check_expression">
<td><code>checkExpression</code></td>
<td><code>string</code></td>
<td>
</td>
</tr>
<tr id="Template.stringMap">
<td><code>stringMap</code></td>
<td><code>map&lt;string,&nbsp;string&gt;</code></td>
<td>
</td>
</tr>
<tr id="Template.res1">
<td><code>res1</code></td>
<td><code><a href="#Res1">Res1</a></code></td>
<td>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="istio.policy.v1beta1.Duration">istio.policy.v1beta1.Duration</h2>
<section>
<p>An instance field of type Duration denotes that the expression for the field must evalaute to
<em>ValueType.DURATION</em></p>

<p>Objects of type Duration are also passed to the adapters during request-time for the instance fields of
type Duration</p>

<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="istio.policy.v1beta1.Duration.value">
<td><code>value</code></td>
<td><code><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration">google.protobuf.Duration</a></code></td>
<td>
<p>Duration encoded as google.protobuf.Duration.</p>

</td>
</tr>
</tbody>
</table>
</section>
<h2 id="istio.policy.v1beta1.TimeStamp">istio.policy.v1beta1.TimeStamp</h2>
<section>
<p>An instance field of type TimeStamp denotes that the expression for the field must evalaute to
<em>ValueType.TIMESTAMP</em></p>

<p>Objects of type TimeStamp are also passed to the adapters during request-time for the instance fields of
type TimeStamp</p>

<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="istio.policy.v1beta1.TimeStamp.value">
<td><code>value</code></td>
<td><code><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp">google.protobuf.Timestamp</a></code></td>
<td>
<p>TimeStamp encoded as google.protobuf.Timestamp.</p>

</td>
</tr>
</tbody>
</table>
</section>
<h2 id="istio.policy.v1beta1.Value">istio.policy.v1beta1.Value</h2>
<section>
<p>An instance field of type Value denotes that the expression for the field is of dynamic type and can evalaute to any
<em>ValueType</em> enum values. For example, when
authoring an instance configuration for a template that has a field <code>data</code> of type <code>istio.policy.v1beta1.Value</code>,
both of the following expressions are valid <code>data: source.ip | ip(&quot;0.0.0.0&quot;)</code>, <code>data: request.id | &quot;&quot;</code>;
the resulting type is either ValueType.IP_ADDRESS or ValueType.STRING for the two cases respectively.</p>

<p>Objects of type Value are also passed to the adapters during request-time. There is a 1:1 mapping between
oneof fields in <code>Value</code> and enum values inside <code>ValueType</code>. Depending on the expression&rsquo;s evaluated <code>ValueType</code>,
the equivalent oneof field in <code>Value</code> is populated by Mixer and passed to the adapters.</p>

<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="istio.policy.v1beta1.Value.string_value" class="oneof oneof-start">
<td><code>stringValue</code></td>
<td><code>string (oneof)</code></td>
<td>
<p>Used for values of type STRING</p>

</td>
</tr>
<tr id="istio.policy.v1beta1.Value.int64_value" class="oneof">
<td><code>int64Value</code></td>
<td><code>int64 (oneof)</code></td>
<td>
<p>Used for values of type INT64</p>

</td>
</tr>
<tr id="istio.policy.v1beta1.Value.double_value" class="oneof">
<td><code>doubleValue</code></td>
<td><code>double (oneof)</code></td>
<td>
<p>Used for values of type DOUBLE</p>

</td>
</tr>
<tr id="istio.policy.v1beta1.Value.bool_value" class="oneof">
<td><code>boolValue</code></td>
<td><code>bool (oneof)</code></td>
<td>
<p>Used for values of type BOOL</p>

</td>
</tr>
<tr id="istio.policy.v1beta1.Value.ip_address_value" class="oneof">
<td><code>ipAddressValue</code></td>
<td><code><a href="#istio.policy.v1beta1.IPAddress">istio.policy.v1beta1.IPAddress (oneof)</a></code></td>
<td>
<p>Used for values of type IPAddress</p>

</td>
</tr>
<tr id="istio.policy.v1beta1.Value.timestamp_value" class="oneof">
<td><code>timestampValue</code></td>
<td><code><a href="#istio.policy.v1beta1.TimeStamp">istio.policy.v1beta1.TimeStamp (oneof)</a></code></td>
<td>
<p>Used for values of type TIMESTAMP</p>

</td>
</tr>
<tr id="istio.policy.v1beta1.Value.duration_value" class="oneof">
<td><code>durationValue</code></td>
<td><code><a href="#istio.policy.v1beta1.Duration">istio.policy.v1beta1.Duration (oneof)</a></code></td>
<td>
<p>Used for values of type DURATION</p>

</td>
</tr>
<tr id="istio.policy.v1beta1.Value.email_address_value" class="oneof">
<td><code>emailAddressValue</code></td>
<td><code><a href="#istio.policy.v1beta1.EmailAddress">istio.policy.v1beta1.EmailAddress (oneof)</a></code></td>
<td>
<p>Used for values of type EmailAddress</p>

</td>
</tr>
<tr id="istio.policy.v1beta1.Value.dns_name_value" class="oneof">
<td><code>dnsNameValue</code></td>
<td><code><a href="#istio.policy.v1beta1.DNSName">istio.policy.v1beta1.DNSName (oneof)</a></code></td>
<td>
<p>Used for values of type DNSName</p>

</td>
</tr>
<tr id="istio.policy.v1beta1.Value.uri_value" class="oneof">
<td><code>uriValue</code></td>
<td><code><a href="#istio.policy.v1beta1.Uri">istio.policy.v1beta1.Uri (oneof)</a></code></td>
<td>
<p>Used for values of type Uri</p>

</td>
</tr>
</tbody>
</table>
</section>
